from django.http import HttpRequest, HttpResponse
from django.shortcuts import render


def index(request: HttpRequest) -> HttpResponse:
    """Index.

    Args:
        request (HttpRequest): req

    Returns:
        HttpResponse: rep
    """
    context = {
        "nav_list": [
            {"name": "主页", "path": "index"},
            {"name": "招聘服务", "path": "index"},
            {"name": "政府人才", "path": "index"},
            {"name": "技术人才", "path": "index"},
            {"name": "企业出海", "path": "index"},
            {"name": "培训咨询", "path": "index"},

        ],
        "sliders": [
            "home/img/slider/1.jpg",
            "home/img/slider/2.jpg",
            "home/img/slider/3.jpg",
            "home/img/slider/4.jpg",
        ]
    }
    return render(request, "home/index.html", context)
